<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2025/7/15
 * Time: 14:32
 */

namespace app\controller\api;

use app\model\User AS model;
use app\controller\Base;

class User extends Base
{
    public function list(){
        $where = [];
        $list = model::where($where)

            ->paginate(['page' => $this->page,'list_rows' => $this->size]);
        return $this->msg($list);
    }

    public function info($id){
        global $user;
        return $this->msg($user);
    }
}